<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<%@include file="/views/common/include/taglib.jsp"%>
<%@include file="/views/common/include/head.jsp"%>
<link type="text/css" rel="stylesheet" href="${ctx }/css/dlifestyle/sectionparent.css" source="widget" />
<link type="text/css" rel="stylesheet" href="${ctx }/css/dlifestyle/admin.css" source="widget" />
<link rel="stylesheet" href="${ctx}/css/page/header.css" type="text/css">
<link rel="stylesheet" href="${ctx}/css/page/ts-demo.css" type="text/css">
<link rel="stylesheet" href="${ctx}/css/page/page.css" type="text/css">
<link rel="stylesheet" href="${ctx}/css/page/reset.css" type="text/css">
<link rel="stylesheet" href="${ctx}/css/page/footer.css" type="text/css"> 
<link rel="stylesheet" href="${ctx}/css/page/openShop.css" type="text/css">
<script src="${ctx}/js/controllers/OpenShopController.js" type="text/javascript"></script>
<script type="text/javascript">
    var ctx = '${ctx}';
    setCtx(ctx);
</script>
<style>
</style>
</head>
<body>
<%@include file="/views/common/head_index.jsp"%>
<div class="bg" style="padding-top:5px;">
        <div class="contentbox contentbox1">
         <div class="content" style="padding-top:0px;/* background-color:#FFFAD9; */width:1100px;margin:0 auto">
            <div class="div1-ffff">
                <p class="p-title"><span style="margin-left:40px;height :30px;">商户入驻</span></p>
                <p class="p-1">*营业执照信息<p>
                <input id="contactor" type="hidden" value="${contactor}"/>
                <input id="contactorPhone" type="hidden" value="${contactorPhone}"/>
                <input id="provinceId" type="hidden" value="${provinceId}"/>
                <input id="cityId" type="hidden" value="${cityId}"/>
                <input id="areaId" type="hidden" value="${areaId}"/>
                <input id="cellId" type="hidden" value="${cellId}"/>
                <input id="descrip" type="hidden" value="${descrip}"/>
                <input id="shopCategoryId" type="hidden" value="${shopCategoryId}"/>
            </div>
            <table class="table-ffff">
            	<tr>
                    <td class="table-title">店铺名称</td>
                    <td class="table-content"><input  maxlength="50" onblur="checkShopName();" class="input-ffff" id="shopName" type="text" /></td>
                </tr>
                <tr>
                    <td class="table-title">公司名称</td>
                    <td class="table-content"><input maxlength="50" onblur="checkCompanyName();" class="input-ffff" id="companyName" type="text" /></td>
                </tr>
                <tr>
                    <td class="table-title">营业执照注册号</td>
                    <td class="table-content"><input onblur="checkBusinessLicense()"class="input-ffff" id="businessLicense" type="text" /></td>
                </tr>
                <tr>
                    <td class="table-title">法定代表人姓名</td>
                    <td class="table-content"><input maxlength="20" onblur="checkLegalName()"class="input-ffff" id="legalName" type="text" /></td>
                </tr>
                <tr>
                    <td class="table-title">身份证号</td>
                    <td class="table-content"><input onblur="checkLegalIdcard()"class="input-ffff" id="legalIdcard" type="text" /></td>
                </tr>
                <tr>
                    <td class="table-title">法人身份证电子版</td>
                    <td class="table-content">
                        <input id="goodsId" type="hidden" value="${goodsInfo.id }">
                        <input id="pic11111" type="hidden">
                        <input id="imageLogo" type="hidden" value="${goodsInfo.logo }">
                                   <p style="text-align: left" id="imageBtn">
                                      <input type="hidden" name="imageLogoUrl" id="imageLogoUrl" />
                                  </p> 
                        <button style="width:100px;height:30px;background-color: #F9C771;border-radius: 4px;color: #fff;border: 0px;" class="acblu tctpsc">上传</button>
                    <%@include file="/views/common/uploader/picture.jsp" %>
                    </td>
                </tr>
                <tr>
                    <td class="table-title">营业执照所在地</td>
                    <td class="table-content">
                    <select id="province1" onblur="checkProvinceName1()"class="select-ffff" style="height:30px;line-height: 30px;width:100px;margin-top: 4px;">  
                <option value="">--省--</option> 
                <c:forEach items="${provinceList}" var="provinceItem" varStatus="status">
                        <option id="${provinceItem.regionName}" value="${provinceItem.id}">
                            ${provinceItem.regionName}
                        </option>
                </c:forEach>
                </select>
            <select id="city1" class="select-ffff" onblur="checkCityName1()"style="height:30px;line-height: 30px;width:100px;">
                <option value="">--市--</option>
                <c:if test="${not empty cityList}">
                    <c:forEach items="${cityList}" var="cityItem" varStatus="status">
                    <option id="${cityItem.regionName}" value="${cityItem.id}">
                        ${cityItem.regionName}
                    </option>
                    </c:forEach>
                </c:if>
            </select>
            <select id="district1" onblur="checkDistrict1()"class="select-ffff" style="height:30px;line-height: 30px;width:100px;">
                <option value="">--区--</option>
                <c:if test="${not empty districtList}">
                    <c:forEach items="${districtList}" var="districtItem" varStatus="status">
                    <option id="${districtItem.regionName}" value="${districtItem.id}">
                        ${districtItem.regionName}
                    </option>
                    </c:forEach>
                </c:if>
           </select>
                    </td>
                </tr>
                <tr>
                    <td class="table-title">营业执照详细地址</td>
                    <td class="table-content"><input maxlength="50" class="input-ffff" id="businessLicenseAddress" onblur="checkBusinessLicenseAddress()" type="text" /></td>
                </tr>
                <tr>
                    <td class="table-title">成立日期</td>
                    <td class="table-content">
                    <input id="registerDate" class="input-ffff" type="text" onfocus="WdatePicker()" class="inputtext input-text Wdate" style="width:120px;height:28px;border:1px solid #AA9D87;/* background-color:#FFFAD9; */"/>
                    </td>
                </tr>
                <tr>
                    <td class="table-title">营业期限</td>
                    <td class="table-content">
                    <input type="text" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'endDate\')||\'%y-%M-%d\'}'})" id="beginDate" 
                        value="${beginDate}" class="input-text Wdate bk-gray" style="width:120px;height:28px;border:1px solid #AA9D87;/* background-color:#FFFAD9; */" placeholder="开始时间"></input>
                  — <input type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'beginDate\')}'})" id="endDate"
                         value="${endDate}" class="input-text bk-gray Wdate" style="width:120px;height:28px;border:1px solid #AA9D87;/* background-color:#FFFAD9; */" placeholder="结束时间"></input>
                     <input id="check" type="checkbox" onchange="forever()" value="" style="line-height: 20px;margin-top: 4px;"/><label>永久</label>
                    </td>
                </tr>
                <tr>
                    <td class="table-title">注册资本</td>
                    <td class="table-content"><input onblur="checkMoney()" class="input-ffff" id="registerMoney" type="text" />&nbsp;&nbsp;&nbsp;万元</td>
                </tr>
                <tr>
                    <td class="table-title">经营范围</td>
                    <td><textarea onpropertychange="if(value.length>200) value=value.substr(0,200)" maxlength="200" class="textarea-ffff" id="businessScope" onblur="checkBusinessScope()"></textarea></td>
                </tr>
                <tr>
                    <td class="table-title">营业执照副本电子版</td>
                    <td class="table-content">
                        <input id="goodsId" type="hidden" value="${goodsInfo.id }">
                        <input id="imageLogo1" type="hidden" value="${logo}">
                                  <p style="text-align: left" id="imageBtn">
                                      <input type="hidden" name="imageLogoUrl" id="imageLogoUrl" />
                                  </p>
                                  <div>
                     <button style="width:100px;height:30px;background-color: #F9C771;border-radius: 4px;color: #fff;border: 0px;" class="acblu tctpsc">上传</button>
                                  </div>
                    <%@include file="/views/common/uploader/picture.jsp" %>
                    </td>                    
                </tr>
                <tr>
                    <td class="table-title">公司所在地</td>
                    <td class="table-content">
                      <select id="province2" onblur="checkProvinceName2()" class="select-ffff" style="height:30px;line-height: 30px;width:100px;margin-top: 4px;">  
                <option value="">--省--</option> 
                <c:forEach items="${provinceList}" var="provinceItem" varStatus="status">
                        <option id="${provinceItem.regionName}" value="${provinceItem.id}">
                            ${provinceItem.regionName}
                        </option>
                </c:forEach>
                </select>
            <select id="city2" class="select-ffff" onblur="checkCityName2()" style="height:30px;line-height: 30px;width:100px;">
                <option value="">--市--</option>
                <c:if test="${not empty cityList}">
                    <c:forEach items="${cityList}" var="cityItem" varStatus="status">
                    <option id="${cityItem.regionName}" value="${cityItem.id}">
                        ${cityItem.regionName}
                    </option>
                    </c:forEach>
                </c:if>
            </select>
            <select id="district2" onblur="checkDistrict2()" class="select-ffff" style="height:30px;line-height: 30px;width:100px;">
                <option value="">--区--</option>
                <c:if test="${not empty districtList}">
                    <c:forEach items="${districtList}" var="districtItem" varStatus="status">
                    <option id="${districtItem.regionName}" value="${districtItem.id}">
                        ${districtItem.regionName}
                    </option>
                    </c:forEach>
                </c:if>
           </select>
                    </td>
                </tr>
                <tr>
                    <td class="table-title">公司详细地址</td>
                    <td class="table-content"><input maxlength="50"  class="input-ffff" id="companyAddress" onblur="checkCompanyAddress()" type="text" /></td>
                </tr>
                <tr>
                    <td class="table-title">公司电话</td>
                    <td class="table-content">
                    <input class="input-ffff" id="companyPhone" type="text" onblur="checkCompanyPhone()"/>
                    </td>
                </tr>
                <tr>
                    <td class="table-title">公司紧急联系人</td>
                    <td class="table-content"><input maxlength="20" class="input-ffff" id="urgentContactor" onblur="checkUrgentContactor()" type="text" /></td>
                </tr>
                <tr>
                    <td class="table-title">公司紧急联系人手机</td>
                    <td class="table-content">
                    <input class="input-ffff" id="urgentContactorPhone" type="text" onblur="checkUrgentContactorPhone()"/>
                    </td>
                </tr>
            </table>
            <div>
                <input id="userAccount" type="hidden" value="${user.loginname}">
                <button class="btn1-ffff" onclick="saveLisence();">提交</button><button class="btn2-ffff" onclick="back();">返回</button>
            </div>
        </div>
        
        
    </div>
</div>
<%@include file="/views/common/footer.jsp"%>
</body>
</html>
